package com.atguigu.gulimall.auth.fegin;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.SocialUser;
import com.atguigu.gulimall.auth.vo.UserLoginVO;
import com.atguigu.gulimall.auth.vo.UserRegistVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName MemberFeginService
 * @Description TODO
 * @Author 13290
 * @Date 2022/12/19 15:37
 **/
@FeignClient("gulimall-member")
public interface MemberFeginService {
    @PostMapping("/member/member/regist")
    //请求体 中json转成对象
    public R regist(@RequestBody UserRegistVO memberRegistVO);

    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVO userLoginVO);

    @PostMapping("/member/member/oauth2/login")
    public R authLogin(@RequestBody SocialUser socialUser);
}
